{{--
/**
 * Created by PhpStrom
 * User: 郭碧云
 * Date: 2021/3/9 15:07
 * Desc:
 */--}}
@extends("layout.admin")

@section("title")
    角色详情
@endsection

@section("content")
    <style>
        .layui-input-block {
            line-height: 36px;
        }
    </style>
    {{--展示--}}
    <div class="layui-form-item">
        <label class="layui-form-label">角色名称:</label>
        <div class="layui-input-block">
            {{$role['name']}}
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">所属站点:</label>
        <div class="layui-input-block">
            {{$role['site']["name"]}}
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">角色人员:</label>
        <div class="layui-input-block">
            @foreach($role['user'] as $user)
                {{$user['name']}} |
            @endforeach
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" class="layui-btn layui-btn-normal" onclick='window.location.href="javascript:history.go(-1)"'>返回</button>
        </div>
    </div>
@endsection

@section('script')

@endsection

